package edu.biwu;

import javax.servlet.*;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @author 王俊彪
 * @version 1.0
 */
public class ServletDemo01 implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("day05-servlet");
        PrintWriter writer = servletResponse.getWriter();
        writer.println("<font color='red'>hello hello servlet</font>");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
